/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/login', controller.user.login);
  router.get('/getUserList', controller.user.getUserList);
  router.post('/addUser', controller.user.addUser);
  router.delete('/delUser', controller.user.delUser);
  router.put('/editItem', controller.user.editItem);
  router.get("/getUserInfo", controller.user.getUserInfo)
  router.get("/userSearch", controller.user.userSearch)


  
  router.get('/getOrder', controller.order.getOrder);
  router.post('/addOrder', controller.order.addOrder);
  router.delete('/delOrder', controller.order.delOrder);
  router.put('/editOrderItem', controller.order.editOrderItem);
  router.get("/orederSearch", controller.order.orederSearch)

  router.get('/getShop', controller.shop.getShop);
  router.post('/addShop', controller.shop.addShop);
  router.delete('/delShop', controller.shop.delShop);
  router.put('/editShop', controller.shop.editShop);
  router.get("/shopSearch", controller.shop.shopSearch)
};
